package com.xiangge.zuoye.Demo2;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/17 17:58
 * @description 矩形测试类
 */
public class RectangleTest {
    public static void main(String[] args) {
        Rectangle jx = new Rectangle();
        jx.setChang(5);
        jx.setKuan(6);
        System.out.println("面积为： " + jx.getArea());
        System.out.println("周长为： " + jx.getPerimeter());
        jx.setChang(jx.getChang()*2);
        jx.setKuan(jx.getKuan()*2);
        jx.getInfo();
    }



}
